package cn.yunhe.entity;
/**
 * 用户实体类
 * 
 * @author qph
 *
 */
public class User {
	private int id;//用户编号
	private String loginName;//登录名,账号
	private String pwd;//密码
	private int state;//状态, 0:正常 ; 1: 禁用
	private int flag;// 角色 , 0:管理员 ; 1:普通用户

	
	public User() {
		super();
	}

	public User(int id) {
		super();
		this.id = id;
	}
	
	
   
	public User(int id, String loginName) {
		super();
		this.id = id;
		this.loginName = loginName;
	}
	

	public User(int id, String loginName, String pwd) {
		super();
		this.id = id;
		this.loginName = loginName;
		this.pwd = pwd;
	}

	public User(String loginName, String pwd, int state, int flag) {
		super();
		this.loginName = loginName;
		this.pwd = pwd;
		this.state = state;
		this.flag = flag;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	 

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

}
